package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.entity.Account;
import org.csu.mypetstore.api.entity.Category;
import org.csu.mypetstore.api.vo.AccountVO;

import java.util.List;

public interface AccountService {
    //验证登录账号和密码
    CommonResponse<AccountVO> getAccount(String username,String password);

    //由用户名获取用户信息
    CommonResponse<AccountVO> getAccount(String username);

    //获取密码
    CommonResponse<String> getPassword(String username);

    //验证用户名是否存在
    CommonResponse<String> usernameExist(String username);

    //新增用户
    CommonResponse<AccountVO> insertAccount(AccountVO accountVO);

    //更新用户资料
    CommonResponse<AccountVO> updateAccount(AccountVO accountVO);

    //获取全部用户资料
    CommonResponse<List<AccountVO>>  getAccountList();
}
